]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
unlockDialog: Drop seat state check after grab
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 30 Dec 2025 13:40:37 +0000 (14:40 +0100)
committerMarge Bot <marge-bot@gnome.org>
Mon, 19 Jan 2026 16:28:44 +0000 (16:28 +0000)
Grabs are non-failable now, we do not need to check for
the backend seat actually having been able to perform the
request.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4020>

js/ui/unlockDialog.js

index c151222b4675c014e5643a9cdb759f14de043e5d..f5f31f5d4874a272cf4f9cdea79f23589c0d0eb1 100644 (file)
@@ -952,11 +952,6 @@ export const UnlockDialog = GObject.registerClass({
 
         const grab = Main.pushModal(Main.uiGroup,
             {actionMode: Shell.ActionMode.UNLOCK_SCREEN});
-        if (grab.get_seat_state() !== Clutter.GrabState.ALL) {
-            Main.popModal(grab);
-            return false;
-        }
-
         this._grab = grab;
         this._isModal = true;